home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1996 April / Macworld (1996-04).dmg / Shareware World / Entertainment / General / Xconq 7.0.1 / doc / getsyms.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1995-08-22  |  225b  |  8 lines

  1. #!/bin/sh
  2.  
  3. # This script extracts GDL symbols defined in the input file.
  4.  
  5. grep '@deffn' $1 | grep '@code' | grep -v '@c ' | sed -e 's/^.*@deffn \([^ ]*\) @code{\([^{ }]*\)}.*$/\2 \1/' | sed -e 's/@@/@/' | sort | uniq
  6.  
  7. exit 0
  8.